package com.sina.shop.manage.service.carousel;

import com.sina.shop.core.BaseService;
import com.sina.shop.core.exception.client.DataException;
import com.sina.shop.core.exception.server.CreateException;
import com.sina.shop.core.exception.server.ResourceExistsException;
import com.sina.shop.core.exception.server.UpdateException;
import com.sina.shop.domain.carousel.Carousel;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * 段浩杰   2017-12-07-18:25
 */
public interface CarouselManageService extends BaseService {
    int deleteCarousel(Long id) throws DataException, UpdateException;

    int deleteCarouselTab(Long id) throws DataException, UpdateException;

    Carousel updateCarousel(Carousel carousel) throws UpdateException, DataException;

    Carousel saveCarousel(Carousel carousel) throws CreateException, ResourceExistsException, DataException;

    List<Map<String, Object>> getCarouselList(Carousel carousel, Long count[]);
}
